package com.razorthink.shell.commands.essential;

import com.razorthink.shell.core.AbstractCommand;
import com.razorthink.shell.utils.CommandLogger;

public class Curl extends AbstractCommand {

	public Curl(String baseCommand, int params) {
		super(baseCommand, params);
	}

	@Override
	public void execute() {
		CommandLogger.logInfo("curl..");
		CommandLogger.logInfo("method: "
				+ super.getCommandParser().getParams().get(0));
		CommandLogger.logInfo("host: "
				+ super.getCommandParser().getParams().get(1));
	}

	@Override
	public String getUsage() {
		return "curl [method] [host]";
	}

	@Override
	public String getDescription() {
		return "request";
	}
}
